//
//  CheckRight.swift
//  BellManage
//
//  Created by Bestsch on 16/5/9.
//  Copyright © 2016年 wsl. All rights reserved.
//

import Foundation

//func CheckRight(_ schid: String!) {
//    
//    
//    let requestXML = "<?xml version=\"1.0\" encoding=\"utf-8\"?><rss version=\"2.0\"><channel><t>3</t><schid>\(schid)</schid></channel></rss>"
//    let url = server + superWebapp
//    var result = HttpUtils.httpPostUTF(url, with: requestXML)
//    result = "{\"post\":\(result)}"
//    print(result)
//    result = result?.replacingOccurrences(of: "null", with: "\"\"")
//    
//    
//    let dictionary: NSDictionary =  try! JSONSerialization.jsonObject(with: result.data(using: String.Encoding.utf8)!, options: JSONSerialization.ReadingOptions.allowFragments) as! NSDictionary
//    let array = dictionary.object(forKey: "post")
//    
//    
//    if array?.count != 0 {
//        let rightArray = NSMutableArray(array: array as! [AnyObject])
//        setRightArray(rightArray)
//    }
//}
